package marchsoft.modules.four.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import marchsoft.base.IBasicService;
import marchsoft.base.PageVO;
import marchsoft.modules.four.admin.entity.dto.RepositoryDTOH5;
import marchsoft.modules.four.admin.entity.dto.StudentDTO;
import marchsoft.modules.four.admin.entity.dto.StudentDTOH5;
import marchsoft.modules.four.common.entity.Repository;
import marchsoft.modules.four.common.entity.Student;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface StudentService extends IBasicService<Student> {

    //分页条件查询
    IPage<Student> queryAll1(PageVO pageVO, StudentDTO studentdto);

    //获取安全分类名称
    List<Student> selectAllNameSafeType();

    //新增学生信息
    void insertStudent(Student student);

    //更新学生信息
    void updateStudent(Student student);

    //删除学生信息
    void deleteStudent(List<Integer> id);

    //批量导入学生信息
    void importStudents(MultipartFile file, HttpServletResponse res);

    //导出数据List
    List<StudentDTOH5> queryAll(StudentDTOH5 studentDTOH5);

    //导出数据，条件查询
    LambdaQueryWrapper<Student> analysisQueryCriteria(StudentDTOH5 studentDTOH5);

    //导出数据
    void download(List<StudentDTOH5> queryAll,HttpServletResponse response) throws IOException;
}
